package com.tosh.model;

/**
 * User: arsentyev
 * Date: 13.12.12
 */
public enum Names {
    OFFER, PICTURE, ORIGINALNAME, TITLE, URL, YEAR, STARRING, COUNTRY, DESCRIPTION, DIRECTOR, UNKNOWN;

    public static Names getByName(String name) {
        try {
            return Names.valueOf(name.toUpperCase());
        } catch (IllegalArgumentException e) {
            return UNKNOWN;
        }
    }
}

/*

ozone_id = id3
url = url4
picture = picture
original_name = original name
russian_name = title
year = year
starring = starring
director = director
country = country
description = description

*/